package com.hotelManagerSystem.service;

import com.hotelManagerSystem.model.Role;
import com.hotelManagerSystem.model.StaffRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  职工--角色服务类
 * </p>
 *
 * @author longyajr
 * @since 2021-12-22
 */
public interface IStaffRoleService extends IService<StaffRole> {

    Boolean deleteStaffRoleByStaffId(int staffId);

    Boolean deleteStaffRoleByRoleId(int roleId);

    /**
     * @author treasy
     * @param staffId
     * @return
     */
    List<Role> queryAllRoleByStaffId(int staffId);
}
